package com.dapeng.cleardatabackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dapeng.cleardatabackend.model.entity.Relation;
import com.dapeng.cleardatabackend.model.vo.RelationVO;

import java.util.List;

/**
* @author dapeng
* @description 针对表【relation(关系表)】的数据库操作Mapper
* @createDate 2024-12-22 13:29:10
* @Entity generator.domain.Relation
*/
public interface RelationMapper extends BaseMapper<Relation> {

    void hardDeleteByGraphId(Long graphId);

    Page<RelationVO> getRelationPage(Page<Relation> page, Long graphId, String startNodeText, String relationText, String endNodeText);

    List<RelationVO> getRelationList(Long id);
}




